package com.xin.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 角色组织关系表
 * </p>
 *
 * @author l1
 * @since 2017-12-05
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@TableName("s_role_org")
public class SRoleOrg extends Model<SRoleOrg> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 角色id
     */
	@TableField("role_id")
	private Integer roleId;
    /**
     * 组织id
     */
	@TableField("org_id")
	private Integer orgId;
    /**
     * 组织层级 1: 机关 学院 2: 院校  3: 专业 级别
     */
	private Integer level;


	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
